package binary;

public class HexDemo {
    public static void main(String[] args) {
        int a = 0x2fd47b;
        int b = 0b1011111101010001111011;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(Integer.toBinaryString(b));
        System.out.println(Integer.toHexString(a));
        System.out.println(Integer.toHexString(b));
        System.out.println(a
        );
        System.out.println(b);
    }
}
